using UnityEngine;
using System.Collections;

public class TowerBehaviour : MonoBehaviour {

	public Transform attackObject;
	public int cooldown;
	private int frameCount;
	

	void Update()
	{
		frameCount++;
		
		if(frameCount > cooldown)
		{
			Instantiate(attackObject,transform.position,attackObject.rotation);
			frameCount = 0;
		}
	}
}
